$(document).ready(function () {
    $.ajax({
        url: serverApi3 + "/order/findO7OrderXq?id=" + $.cookie("tempId"),
        type: "POST",
        success: function (result) {
            if (result.code === 200) {
                //赋值
                $(".createTime").html(result.data.createTime)
                $(".doctorName").html(result.data.doctorName)
                let settlementStat = result.data.settlementStat;
                switch (settlementStat){
                    case 1:
                        $(".settlementStat").html('待支付')
                        break;
                    case 2:
                        $(".settlementStat").html('已完成')
                        break;
                    case 3:
                        $(".settlementStat").html('已取消')
                        break;
                }
                $(".yyName").html(result.data.yyName)

                let list = result.data.list;
                for (let index in list) {
                    $("#select_array").append('<input class="clear-bg hot-signle" type="text" value="'+list[index].inspectName+'" disabled="disabled">')
                }
            } else {
                layer.msg("请求失败", {icon: 7, anim: 6});
            }
        }
    });
});